Skip to main content

lineIndex

Type

property

Summary

The line offset in the field of the start of the chunk.

Syntax

get the lineIndex of <fieldChunk>

Description

The lineIndex of a field chunk returns the line offset in the field of the start of the chunk.

Examples

-- Example: 2 lines of text in a field
-- Hello World
-- Goodbye World

the lineIndex of char 7 of field 1 -- 1
-- char 7 is on line 1
the lineIndex of word 4 of field 1 -- 2
-- word 4 is on line 2

property: charIndex

Compatibility and Support

Introduced

LiveCode 5.5

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?